import Vue from "vue";
import VueRouter from "vue-router";
import appointment from "@/views/appointment.vue";
import user from "@/views/user.vue";
import psy from "@/views/psy.vue";
import sys_config from "@/views/sys_config.vue";
import Main from "@/views/Main.vue";
import sys_user from "@/views/sys_user.vue";
import login from "@/views/login.vue";

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    name: 'login',
    component: login
  },
  {
    path: '/home',
    name: 'main',
    component: Main
  },
  {
    path: '/appointment',
    name: 'appointment',
    component: appointment
  },
  {
    path: '/user',
    name: 'user',
    component: user
  },
  {
    path:'/psy',
    name: 'psy',
    component: psy
  },
  {
    path:'/sys_config',
    name: 'sys_config',
    component: sys_config
  },
  {
    path:'/sys_user',
    name: 'sys_user',
    component: sys_user
  }
]

const router = new VueRouter({
  routes
})
export default router
